home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 1277 / text0000.txt < prev   
Encoding:
Text File  |  1996-08-05  |  1.2 KB  |  37 lines

  1. In article <747.6586T681T16@mbox3.swipnet.se> patrik.nilsson@mbox3.swipnet.se (Patrik Nilsson) writes:
  2. > void __saveds
  3. > dotcpline( int process )
  4. > {
  5. > int i;
  6. >    ...
  7. > }
  8. > What does "__saveds" mean?
  9. > Are there anything to think about when using "CreateNewProcTags"? 
  10. > I have nine processes using the same code, but it will only fail
  11. > to execute sometimes.
  12. > (I have seen others using "__saveds", are there other usefull
  13. > "__saveds"?)
  14. > What are such tag as "__saveds" called?
  15.  
  16. __saveds is a keyword in SAS/C which tells the compiler to load A4 with
  17. the value of the NEAR data pointer on entry to the function.
  18.  
  19. DICE uses __geta4, other compilers use other keywords.
  20.  
  21. Yes, this is something that needs to be used *sometimes* with any function
  22. that sets up part of your code as a separate task.  If part of your program
  23. will be running under a different task than the main one, you need to make
  24. certain that the A4 pointer is loaded properly, or your code running under
  25. the different task may not be able to access any of your program's global
  26. data.
  27.  
  28. -- 
  29. Jim Cooper | World: jamie@interpath.com | "I-Net 225 is my life... or at
  30.            | BIX:   jcooper             |  least it seems like it!"  :-)
  31.  
  32. Definition of Perfection: Dysfunctionally Challenged.
  33.